package cn.lingyangwl.agile.misc.short_link.model.rqrs;

import cn.lingyangwl.framework.validation.group.*;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 短链组
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class LinkGroupReq {
    @NotNull(message = "不能为空", groups = UpdateGroup.class)
    private Long id;

    /**
     * 组名
     */
    @NotEmpty(message = "不能为空")
    private String name;
}
